<!DOCTYPE html>
<html lang="en">
<head>
    <{include file="public_html/header_tag.html" }>
    <title><{$school_info.index_seo_title}></title>
  <link rel="stylesheet" href="/static/wap/skin/css/logreg.css">
    <style>
    .dm-pup-box{ position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.5); z-index:9;}
    .dm-ewm-pup{ width:10rem; height:10rem; position:absolute; top:50%; left:50%; margin:-5rem 0 0 -5rem;}
    .dm-ewm-pup img{ width:100%; height:100%; }
    </style>
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script>
    function JSON_CK(){
        var $html = '<div class="dm-pup-box"><div class="dm-ewm-pup"><img src="<{$school['wx_mp_qrcode']}>"></div></div>';
        $('body').append($html);
        var $box = $('.dm-pup-box');
        $box.click(function(){
            $(this).remove();
        })
    }
    function JSON_BZR(){
        var $html = '<div class="dm-pup-box"><div class="dm-ewm-pup"><img src="<{$school['wx_manager_qrcode']}>"></div></div>';
        $('body').append($html);
        var $box = $('.dm-pup-box');
        $box.click(function(){
            $(this).remove();
        })
    }

        <{if isset($signPackage)}>
        wx.config({
            debug: false,
            appId: '<{$signPackage['appId']|default:""}>',
            timestamp: <{$signPackage['timestamp']|default:0}>,
            nonceStr: '<{$signPackage['nonceStr']|default:""}>',
            signature: '<{$signPackage['signature']|default:""}>',
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','onMenuShareQZone']
        });
        <{/if}>
        wx.ready(function () {
            if('<{$school_info.wx_share_text}>' != ''){
                var title = '<{$school_info.wx_share_text}>';
            }else{
                var title = '<{$school_info.school_name}>云平台，让学习变得更简单！';
            }
            
            if("<{$school_info.wx_share_logo}>" != ''){
                var imgUrl = '<{$school_info.wx_share_logo}>?imageView2/1/w/200/h/200';
            }else{
                var imgUrl = '';
            }

            var su = "<{$school_info.url_wap}>?share=<{$user_data.id|default:0}>";
            var sw = "SHOP";

            wx.onMenuShareTimeline({
                title: title, // 分享标题
                link: su, // 分享链接
                imgUrl: imgUrl, // 分享图标
                success: function () {
                    // 用户确认分享后执行的回调函数
                    // alert('成功');
                    $.post('/share_ajax/share',{'share_where':'onMenuShareTimeline','share_url':su,'share_what':'school'});
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                    // alert('q取消');
                }
            });
            wx.onMenuShareAppMessage({
                title: title, // 分享标题
                link: su, // 分享链接
                imgUrl: imgUrl, // 分享图标
                success: function () {
                    // 用户确认分享后执行的回调函数
                    // alert('成功');
                    $.post('/share_ajax/share',{'share_where':'onMenuShareAppMessage','share_url':su,'share_what':'school'})
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                    // alert('取消');
                }
            });
            wx.onMenuShareQQ({
                title: title, // 分享标题
                link: su, // 分享链接
                imgUrl: imgUrl, // 分享图标
                success: function () {
                    // 用户确认分享后执行的回调函数
                    // alert('成功');
                    $.post('/share_ajax/share',{'share_where':'onMenuShareQQ','share_url':su,'share_what':'school'});
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                    // alert('失败');
                }
            });
            wx.onMenuShareQZone({
                title: title, // 分享标题
                link: su, // 分享链接
                imgUrl: imgUrl, // 分享图标
                success: function () {
                    // 用户确认分享后执行的回调函数
                    // alert('成功');
                    $.post('/share_ajax/share',{'share_where':'onMenuShareQZone','share_url':su,'share_what':'school'});
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                    // alert('失败');
                }
            });


        });

        wx.error(function (res) {

            // config信息验证失败会执行error函数，如签名过期导致验证失败，具体错误信息可以打开config的debug模式查看，也可以在返回的res参数中查看，对于SPA可以在这里更新签名。
//            alert("error:"+res);
        });

    </script>


</head>
<body>
<div class="warp">
    <{if $banner_list|count > 0}>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <!-- Slides -->
            <{foreach from=$banner_list item=banner}>
            <div class="swiper-slide"><a href="<{$banner.ad_url}>"><img src="<{$banner.ad_image_url}>" /></a></div>
            <{/foreach}>
        </div>
        <div class="swiper-pagination"></div>
    </div>
    <{/if}>
    <{if $logged_in == 0}>
    <div class="xlcss-form-dome" style="padding:0px;0px;0px;0px;">
      <div class="de_btn" style="padding-left:50px;padding-right:50px;padding-bottom:25px;">

          <button onclick="javascript:window.location.href='/logreg';">登录注册</button>

      </div>
    </div>
    <{/if}>
    <div class="nav_class p20 b-FFFFFF">
      <a href="/my/home"><img src="/static/wap/img/ico_8888_04.png" alt=""><p>学习中心</p></a>
      <!-- <a href="/my/orders"><img src="/static/wap/img/ico_8888_07.png" alt=""><p>我的订单</p></a> -->
      <a href="/my/fenxiao"><img src="/static/wap/img/ico_8888_01.png" alt=""><p>我的同学</p></a>
      <a href="/my/wallet"><img src="/static/wap/img/ico_5050_05.png" alt=""><p>我的钱包</p></a>
      <a href="/my/tiku/tlist"><img src="/static/wap/img/ico_8888_02.png" alt=""><p>我的题库</p></a>
      <a href="javascript:;" onclick="JSON_CK();"><img src="/static/wap/img/ico_8888_05.png" alt=""><p>关注公众号</p></a>
      <a href="javascript:;" onclick="JSON_BZR();"><img src="/static/wap/img/ico_8888_06.png" alt=""><p>添加班主任</p></a>


    </div>
    <!--star main_cont-->
    <div class="main_cont oh">
        <!--star网课分类-->
        <{if $cate_list}>
        <div class="mtcBox mt20">
            <div class="mt fwb"><span class="ico"></span>网课分类<a href="javascript:;" class="right_arrow"></a></div>
            <div class="mc">
                <ul class="network_class fix LH40">
                    <{foreach from=$cate_list item=item}>
                    <li>
                        <a href="/video/index/0/<{$item['id']}>/0">
                            <img src="<{$item['ico']}>">
                            <span><{$item['name']}></span>
                        </a>
                    </li>
                    <{/foreach}>

                </ul>
            </div>
        </div>
        <{/if}>
        <!--end网课分类-->
        <!--star开课公告-->
        <{if 7|in_array:$have_modular_id AND $zhibo AND isset($zhibo.title)}>
        <div class="mtcBox mt20">
            <div class="mt fwb"><span class="ico"></span>课程预告<a href="/live" class="right_arrow">更多</a></div>
            <div class="fix b-FFFFFF pt-10 mt10" id='list'>
                <ul>
                    <li class="p20 brB">
                        <a class="layout-box" href="/live/detail/<{$zhibo['id']}>">
                            <div class="ith_img2">
                                <span class="mr20" style="height:4rem; width:6.5rem; background-image:url(<{$zhibo['course_img']}>)"></span>
                            </div>
                            <div class="box-col" style="padding-left:20px;">
                                <div class="h40 oh fs34"><{$zhibo.title}></div>
                                <div class="h40 oh fs26 c-666666 pt10">主讲老师：<{$zhibo['teacher_name']}></div>
                                <div class=" pt10">开播时间：<{$zhibo[ 'start_time']|date_format: '%m-%d %H:%M'}></div>
                                <!-- <div class="fs26 pt10 c-999999"><span class="mr10">97.13% 满意度</span><span class="r"><{$item.click_num}> 次学习</span></div> -->
                            </div>
                        </a>
                    </li>
                </ul>
            </div>


        </div>
        <{/if}>
        <!--end开课公告-->
        <!--star班级推荐-->
        <{if 5|in_array:$have_modular_id AND $video_list}>
        <div class="mtcBox mt20">
            <div class="mt fwb"><span class="ico"></span>精品课程<a href="/video" class="right_arrow">更多</a></div>
            <div class="fix b-FFFFFF mt10" id='list'>
                <ul>
                    <{foreach from = $video_list item=item}>
                    <li class="p20 brB">
                        <a class="layout-box" href="/video/detail/<{$item.id}>">
                            <div class="ith_img2">
                                <span class="mr20" style="height:4rem; width:6.5rem; background-image:url(<{$item.course_img}>)"></span>
                            </div>
                            <div class="box-col" style="padding-left:20px;">
                                <div class="h40 oh fs34"><{$item.title}></div>
                                <div class="h40 oh fs26 c-666666 pt10">主讲老师：<{if $item.school_id == 0}><{$item.teacher_name}><{else}><{$item.school_teacher_name}><{/if}></div>
                                <div class=" pt10">价格：<span class="c-FF0000 mr10">¥<{if $item.school_id == 0}><{$item['fx_price']|string_format:"%.2f"}><{else}><{$item['price']|string_format:"%.2f"}><{/if}></span>
                                  <!-- <span class="r mt10 fs26 c-999999"><{$item['add_time']|date_format:'%Y-%m-%d'}></span> -->
                                </div>
                                <!-- <div class="fs26 pt10 c-999999"><span class="mr10">97.13% 满意度</span><span class="r"><{$item.click_num}> 次学习</span></div> -->
                            </div>
                        </a>
                    </li>
                    <{/foreach}>
                </ul>
            </div>

        </div>
        <{/if}>
        <!--end班级推荐-->
        <!--star网课推荐-->
        <{if 6|in_array:$have_modular_id AND $banke_list}>
        <div class="mtcBox mt20">
            <div class="mt fwb"><span class="ico"></span>面授课程<a href="/banke" class="right_arrow">更多</a></div>
            <div class="mc pt20 pics_list_item">
                <ul class="wList55 fs12">
                <{foreach from=$banke_list item=item}>
                    <li>
                        <div class="v">
                            <!--v-thumb star-->
                            <div class="v-thumb">
                                <div class="v-pic-default"><img src="/static/wap/img/v.png"></div>
                                <div class="v-pic-real" style="background-image:url(<{$item['course_img']}>)"></div>
                                <a class="v-link" href="/banke/detail/<{$item.id}>"></a>
                            </div>
                            <!--v-thumb end-->
                            <div class="v-title">
                                <p class="h40 oh fs14"><span><{$item['title']}></span><span class="c-666666 fs12 r"></span></p>
                                <!-- <p class="c-666666"><span class="c-FF0000">¥235</span><span class="r">销售：1544</span></p> -->
                            </div>
                        </div>
                    </li>
                    <{/foreach}>

                </ul>
            </div>
        </div>
        <{/if}>
        <!--end网课推荐-->
        <!--star资讯-->
        <{if 10|in_array:$have_modular_id && $new_list|count > 0}>
        <div class="mtcBox mt20">
            <div class="mt fwb"><span class="ico"></span>最新资讯<a href="/news" class="right_arrow">更多</a></div>
            <div class="mc pt20">
                <ul class="fs12 b-FFFFFF p20">
                    <{foreach from=$new_list item=news}>
                    <li class="brB pb20 mb10">
                        <a class="fs14" href="/news/detail/<{$news.id}>"><{$news.title}></a>
                        <p><span class="c-999999"><{$news.add_time|date_format:'%Y-%m-%d'}></span></p>
                    </li>
                    <{/foreach}>
                </ul>
            </div>
        </div>
        <{/if}>
        <!--end资讯-->
        <!--star友情链接-->
        <{if isset($index_friend_links.count) AND $index_friend_links.count > 0}>
        <div class="mtcBox mt20 footer_link">
            <div class="mt fwb"><span>友情链接</span></div>
            <div class="mc b-FFFFFF">
                <ul class="fix p20">
                    <{foreach from=$index_friend_links.result item=frined_link}>

                    <li><a href="<{$frined_link.url}>" target="_blank"><{if !empty($frined_link.logo)}><img src="<{$frined_link.logo}>" alt="<{$frined_link.title}>"><{else}><{$frined_link.title}><{/if}></a></li>

                    <{/foreach}>
                </ul>
            </div>
        </div>
        <{/if}>
        <!--end友情链接-->
    </div>
    <!--end main_cont-->
</div>
<div class="tac ptb20 brT">
<a href="/about">关于我们</a><span class="plr50">|</span><a href="/link">联系我们</a>
</div>
<div class="tac ptb20 brT">Copyright ©2017德安信版权所有</div>

<script src="/static/wap/weui/js/jquery.min.js"></script>
<script src="/static/wap/weui/js/jquery-weui.min.js"></script>
<script src="/static/wap/js/demos.js"></script>
<link rel="stylesheet" href="/static/wap/css/swiper.css">
<script src="/static/wap/js/swiper.min.js"></script>
<script>
  $(".swiper-container").swiper({
    loop: true,
    autoplay: 3000
  });
</script>
<{$school_info.bdsq}>
</body>
</html>
